window.onload = function () {
  barba.init({
    transitions: [
      {
        name: "default",
        leave(data) {
          console.log("leave", data);
        },
        enter() {
          console.log("enter", data);
        },
      },
    ],
  });
};
